package org.dicker.biz.impl;

import java.util.List;

import org.dicker.biz.ReplyBiz;
import org.dicker.dao.ReplyDao;
import org.dicker.dao.impl.ReplyDaoImpl;
import org.dicker.entity.ReplyInfo;

public class ReplyBizImpl implements ReplyBiz {

	private ReplyDao rDao=new ReplyDaoImpl();
	
	@Override
	public List<ReplyInfo> selectByList(int page, int pageSize) {
		return rDao.selectByList(page, pageSize);
	}

	@Override
	public int selectCount(int message_id) {
		return rDao.selectCount(message_id);
	}

	@Override
	public boolean addReply(ReplyInfo rInfo) {
		return rDao.addReply(rInfo);
	}



	@Override
	public boolean selectUserid(int user_id) {
		return rDao.selectUserid(user_id);
	}

	@Override
	public int deleteById(int replyid) {
		return rDao.deleteById(replyid);
	}

	@Override
	public ReplyInfo selectByInfo(int id) {
		return rDao.selectByInfo(id);
	}

	@Override
	public boolean updateById(ReplyInfo rinfo) {
		return rDao.updateById(rinfo);
	}

	@Override
	public List<ReplyInfo> selectByMessageId(int message_id) {
		return rDao.selectByMessageId(message_id);
	}

	@Override
	public List<ReplyInfo> selectByUser(String wx_openid) {
		return rDao.selectByUser(wx_openid);
	}

}
